package com.kob.design.decorator;

/**
 * @Description: 快餐类, 抽象构建角色
 * @Author: fyt
 * @Date: 2024/4/16 16:45
 **/
public abstract class FastFood {
    private float price;
    private String desc;

    public abstract float cost();

    public FastFood() {

    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
